package ru.testspring;

import org.springframework.context.ApplicationContext;

import ru.testspring.beans.Document;

public class SpringTester {
	
	private ApplicationContext context;
	
	public SpringTester(ApplicationContext context) {
		this.context = context;
	}

	public void test01() {
		
		Document duke00 = (Document)context.getBean("doc");
		Document duke01 = (Document)context.getBean("doc00");
		System.out.println(duke00.process());
		System.out.println(duke01.process());
		
	}

}
 